<!DOCTYPE html>
<html lang="en">
<head>
    <{include file="public_html/header_tag.html" }>
    <title>我的钱包</title>

  </head>
  <body>
    <header class="brB">
    	<div class="h_top">
        	<div class="hLeft"><a href="/my/wallet" class="icoH icoReturn mt20"></a></div>
        	<div class="hCenter"><span class="tit c-3ac9af">提现</span></div>
        </div>
    </header>
    <div class="warp">

    	<div class="fix LH60 fs30 pt20">
        <form action="/my/wallet/tixian" method="post">


            <div class="p20 b-FFFFFF">
                <div class="layout-box">
                	<label class="box-col ipRadio"><input name="zdRadio" type="radio" checked/><span class="roundedOne"><i></i></span>提现到微信钱包</label>
                </div>
            </div>
            <div class="p20 b-FFFFFF mt20">
            	<div class="pb40">
                	<p class="ptb20">提现金额</p>
                    <div class="weui-row brB">
                    	<span class="weui-col-5 fs40 c-000000">¥</span>
                    	<div class="weui-col-95"><input class="noText" name="amount" id="amount" type="number" value="<{$user_account['balance']-$withdrawl_amount}>"></div>
                    </div>
                    <p><span class="fs26 c-666666">可提现金额：¥<{$user_account['balance']-$withdrawl_amount}></span></p>
                </div>
            </div>
        	<div class="fix mt20 p40 tac">
            	<div class="tac layout-box LH80">
            		<a class="box-col b-3ac9af c-FFFFFF r5 fs32" href="javascript:;" id="tixian">提现</a>
            	</div>
                <p class="fs26 c-666666">明天24点钱到账</p>
            </div>

            </form>
        </div>

    </div>
    <script>
    $(function(){
      $("#tixian").click(function(){
        var balance = <{$user_account['balance']-$withdrawl_amount}>;
        var amount = $("#amount").val();
        if(balance <= 0){
          alert('余额不足！');
          return false;
        }
        if(amount == ""){
          alert('请填写提现金额！');
          return false;
        }else if (amount > balance){
          alert('余额不足！');
          return false;
        }
        $("form").submit();

      })
    })
    </script>
</body>
</html>
